package com.ly;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;

/**
 * Gateway网关路由有俩种配置方式：
 *      1、在配置文件yml中配置
 *      2、代码中注入RouteLocator的bean中(自己构建配置文件Config)
 *      至于选哪种方案，看个人而言，我个人推荐于yml文件中配置使用
 */
@SpringBootApplication
@EnableEurekaClient
@EnableDiscoveryClient
public class GatewayMain9527 {

    public static void main(String[] args) {
        SpringApplication.run(GatewayMain9527.class,args);
    }
}
